package com.wangchao.administrator.zenmechi.ui.fragment.caipufragment;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.wangchao.administrator.zenmechi.ui.fragment.caipuitemfragment.CaipuItemFragment;

import java.util.List;

/**
 * Created by Administrator on 2016/10/17.
 */
public class MyAdapterForCaipuViewPager extends FragmentPagerAdapter {

    private List<CaipuItemFragment> list;

    public MyAdapterForCaipuViewPager(FragmentManager fm,List<CaipuItemFragment> list) {
        super(fm);
        this.list = list;
    }

    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }
}
